<?php 
	//only if it's a true ajax request.
	if(Utility::isAjax() == true)
	{
		$session->flash();
	}
?>
<?php 
if(!isset($_GET['flashOnly']))
{
	echo $content_for_layout;
}
echo $startup_js;
?>